package com.example.Cassandra;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.UUID;

@SpringBootApplication
public class CassandraApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext ctx = SpringApplication.run(CassandraApplication.class, args);

		PersonRepository repository = ctx.getBean(PersonRepository.class);

		repository.insert(new Person(UUID.randomUUID().toString(), "Jon Doe", 40));

	}

}
